package com.chixing.ih.module.programmer.service.Impl;

import com.chixing.ih.module.programmer.mapper.FabulousMapper;
import com.chixing.ih.module.programmer.pojo.Programmer;
import com.chixing.ih.module.programmer.service.IFabulousService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * Created with IntelliJ IDEA.
 * Description:
 *
 * @version 1.0
 * @Author MasterYan
 * @Date 2020/10/4
 * Time: 19:27
 */
@Service
@Transactional
public class FabulousServiceImpl implements IFabulousService {
    @Autowired
    FabulousMapper fabulousMapper;

    @Override
    public boolean updateOne(Programmer programmer) {
        int record = fabulousMapper.updateOne(programmer);
        if (record > 0)
            return true;
        else
            return false;
    }
}